<?php
declare (strict_types = 1);
namespace app\user\logic\user;

use app\common\exception\LogicException;
use app\user\model\user\VipUser as VipUserModel;
use app\admin\logic\system\Config as SystemConfig;


/**
 * 账户会员接口类
 */
class VipUser extends VipUserModel
{
    
    public function userVipExpire()
    {
        return $this->scope('mid')->value('expire_time')?:0;
    }

    public function isVip()
    {
    	$is_vip = $this->scope('mid')->unexpire()->findOrEmpty();
    	return $is_vip->isEmpty() ? 0 : 1;
    }

}
